<?php


    include "../mysql/mysql.php";
    $aa = new mysql;
    $aa->link("");
    include "../myfunction.php";
    $bb= new myfunction;	
?>
    
    
    
    
    



<div id="tjmanage"><div>
                <div id="managelist">
                    <p><strong>管理人员账户清单</strong></p>
                    <table>
                        <tr>
                            <th>编号</th><th>用户名</th><th>权限</th><th>操作</th>
                        </tr>
                        <?php 
						    $res = $bb->findallmanage(); var_dump($res);
							while($row= mysqli_fetch_array($res, MYSQLI_ASSOC) ){
						?>
                        <tr>
                            <td><?php echo $row['id']; ?></td><td><?php echo $row['user_name']; ?></td>
                            <td><?php echo $row['right_control']; ?></td><td><button>删除</button></td>
                        </tr>
                        <?php } ?>
                    </table>
                </div>
                
                <div id="newmanage">
                    <form id="addnew">
                        <p>用户名：<input type="text" name="newmname" id="newmname" placeholder="请输入新管理名称"></p>
                        <p>密　码：<input type="password" name="newmpw1" id="newmpw1" placeholder="请设置密码"></p>
                        <p>密　码：<input type="password" name="newmpw2" id="newmpw2" placeholder="请重复密码">></p>
                        <p>权　限：<input type="text" name="newmright" id="newmright" placeholder="请设置新管理权限">></p>
                    </form>
                    <div><button id="addnewm">添加新管理</button></div>
                </div>
        
        
            </div></div>



